Post

Replies

Boosts

Views

Activity

Reply to Xcode 12 issues running multiple test suites with 'Underlying Error: Invalid device state' [only when running via SSH]
For me it was happening on my local machine. I've been able to fix it by going to Project settings, selecting my test target, then in General tab changing "Host application" from "None" to name of my main app target. (the issue was happening for unit tests of my custom framework linked to my app) Interestingly enough it was working before on my M1 MacBook, but after sometime suddenly this error started to appear. For no apparent reason. I realized this was happening only for unit tests for my custom framework linked to my app. Not for my main apps unit tests. I tried even to reinstall the Xcode and after that it worked for little time. But then I dug into totally unrelated issues with Playgrounds which don't work either on my machine and after that the error began to appear again. Changing the Host application for unit tests seems to be fixing it for now.
Mar ’21